home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / piemnu20.zip / PIEMNU20.TBK (.txt) < prev    next >
Asymetrix ToolBook File  |  1992-09-24  |  50KB  |  502 lines

  1. System
  2. Arial
  3. System
  4. suggestion 
  5. welcome.     Please mail 
  6. -- * 
  7. -- *    
  8. -- *    via Bembo, 5
  9. 34015
  10. Muggia (TS)
  11. -- *    Italy
  12. -- *    tel. +39 40 275030
  13. -- *    fax. +39 40 311850
  14. -- *    email: tosolini@uts340.univ.trieste.
  15. -- justOpen 
  16. ^that avoid 
  17. the pieMenu 
  18. accidental
  19. cloading 
  20. handler 
  21. become 
  22. enterBook
  23. enterBook
  24. sizeToPage
  25. justOpen
  26. System
  27. -- *    PIE MENU implementation v. 1.0
  28. HPaolo Tosolini - Sept '92    *
  29. -- * 
  30. -- *    
  31. suggestion 
  32. welcome.     Please mail 
  33. -- * 
  34. -- *    
  35. -- *    via Bembo, 5
  36. 34015
  37. Muggia (TS)
  38. -- *    Italy
  39. -- *    tel. +39 40 275030
  40. -- *    fax. +39 40 311850
  41. -- *    email: tosolini@uts340.univ.trieste.
  42. -- justOpen 
  43. ^that avoid 
  44. the pieMenu 
  45. accidental
  46. cloading 
  47. handler 
  48. become 
  49. enterBook
  50. enterBook
  51. reader
  52. sizeToPage
  53. justOpen
  54. Suggestions
  55. The Pie Menu is useful when you want the user to concentrate his attention only
  56. to the context of the book, without displaying buttons on the screen. 
  57. The Pie Menu script is written in the background. Only the first page includes a
  58. supplementary script that avoids the Pie Menu appearing on entering the book
  59. for accidental buttonDown messages while loading the file.
  60. Remember to keep the Pie Menu in the first layer.
  61. Hotword   like this should have the precedence over the Pie Menu.
  62. To create your own application, you should copy the following parts:
  63. - book, background and first page scripts                             
  64. - the PieMenu group (on every page of your book) and the field called                  
  65. "Action" in the background (or backgrounds)                        
  66. I suggest anyway to do these operations once your book is completed.....
  67. "I intercepted the 
  68. {message 
  69. I've 
  70. precedence "\
  71.             & "over 
  72. -Pie Menu" 
  73. f"OK"
  74. buttonDown
  75. buttonDown
  76. I intercepted the buttonDown message and I've the precedence 
  77. over the Pie Menu
  78. PieMenu
  79. GoPrev
  80. stokecolor
  81. 0,0,0
  82. Previsss
  83. GoIndex
  84.     stokecolor
  85. 0,0,0
  86. Index
  87. GoNext
  88. stokecolor
  89. 0,0,0
  90. GoBack
  91. stokecolor
  92. 0,0,0
  93. txClassName
  94. This page is called INDEX and could be the summary page of your book
  95. pagina 3
  96. [ see  Callahan J., Hopkins D., Weiser M.,  Shneiderman B. (1988)
  97. "An empirical comparison of Pie versus Linear Menus", Proceeedings of CHI' 88 ]
  98.  Pie Menu script is written in the background. Only the first page includes a
  99. supplementary script that avoids the Pie Menu appearing on entering the book
  100. for accidental buttonDown messages while loading the file.
  101. Remember to keep the Pie Menu in the first layer.
  102. Hotword   like this should have the precedence over the Pie Menu.
  103. To create your own application, copy the enterbook, background and first page scripts and add them to your book. Then make appear the Pie Menu of a page of this book, 
  104. switch to author level and copy it to every page of your application.
  105. I suggest anyway to do these operations once your book is completed.
  106. PieMenu
  107. GoPrev
  108. stokecolor
  109. 0,0,0
  110. Previsss
  111. GoIndex
  112. stokecolor
  113. 0,0,0
  114. Index
  115. GoNext
  116. stokecolor
  117. 0,0,0
  118. GoBack
  119.     stokecolor
  120. 0,0,0
  121. txClassName
  122. Author
  123. PieMenu
  124. GoPrev
  125. stokecolor
  126. 0,0,0
  127. Previsss
  128. GoIndex
  129. stokecolor
  130. 0,0,0
  131. Index
  132. GoNext
  133. stokecolor
  134. 0,0,0
  135. GoBack
  136. stokecolor
  137. 0,0,0
  138. txClassName
  139. This page is called INDEX and could be the summary page of your book
  140. I look forward to hearing from you !
  141. Your suggestions, comments and criticisms are very helpful for me.
  142. They are new energy for everybody's brainstorming to find new interface solutions.
  143. Please, write to:
  144. Paolo Tosolini  via Bembo, 5   34105  Muggia (TS)  Italy
  145. tel. +39-40-275030  fax. +39-40-311850   email: tosolini@uts340.univ.trieste.it
  146. REFERENCES
  147. [  Callahan J., Hopkins D., Weiser M.,  Shneiderman B. (1988)
  148. "An empirical comparison of Pie versus Linear Menus", Proceedings of CHI' 88 ]
  149. [ Kurtenbach P.G., Sellen A. J. e Buxton W. A. S. (1992) ," An Empirical Evaluation of some Articulatory and Cognitive Aspects of Marking Menus", to print on HCI January 1993 ]
  150. l and copy it to every page of your application.
  151. I suggest anyway to do these operations once your book is completed.
  152. Introduction
  153. Suggestions
  154. Author
  155. System
  156. Arial
  157. System
  158. mes New Roman
  159. Arial
  160. Arial
  161. Arial
  162. mes New Roman
  163. enterBook
  164. enterBook
  165. sizeToPage
  166. justOpen
  167. System
  168. -- *    PIE MENU implementation v. 2.0
  169. HPaolo Tosolini - Oct '92        *
  170. -- * 
  171. -- *    
  172. suggestion 
  173. welcome.     Please mail 
  174. -- * 
  175. -- *    
  176. -- *    via Bembo, 5
  177. 34015
  178. Muggia (TS)
  179. -- *    Italy
  180. -- *    tel. +39 40 275030
  181. -- *    fax. +39 40 311850
  182. -- *    email: tosolini@uts340.univ.trieste.
  183. -- justOpen 
  184. ^that avoids the appareance 
  185. pieMenu 
  186. accidental
  187. cloading 
  188. 8(i.e. doubleclicking on Toolbook Icon)
  189. handler 
  190. become 
  191. 4Xp, Yp, Xq, Yq
  192. enterBook
  193. enterBook
  194. reader
  195. sizeToPage
  196. justOpen
  197. reader
  198. sizeToPage
  199. justOpen
  200. Action
  201. PREVIOUS
  202. PREVIOUS
  203. Action
  204. MouseEnter
  205. MouseEnter
  206. MouseEnter
  207. ButtonUp
  208. "pieMenu"
  209. ButtonUp
  210. ButtonUp
  211. pieMenu
  212. Index
  213. Printer Set&up...
  214. &Print Page
  215. --     the 
  216. called "Action" 
  217. Background shows 
  218. (user which action
  219. --     he did 
  220. IPieMenu
  221. "pieMenu" 
  222. Xp-660,Yp-640    -- puts 
  223. v where 
  224. mouse 
  225. ClearPie
  226.  commands
  227. "Up"         -- no 
  228.  shown 
  229. ckeeping pressed 
  230. rightMouseButton
  231. Xp-660,Yp-640    -- 
  232.         -- loop 
  233. accelerate refresh 
  234. signed 
  235. loc2 
  236. )        -- detects continuosly 
  237.  -Xp) < 150 ) 
  238. %-Yp) < 150)    -- 
  239. Pie, 
  240. znothing
  241. {-Xp) >= 
  242. x-Yp)        
  243. NEXT angle ?
  244. "GoNext" 
  245. "GoPrev" 
  246. "GoIndex" 
  247. "GoBack" 
  248. PREVIOUS 
  249. BACK 
  250. INDEX 
  251. "Up"    -- exits 
  252. leftMouseButton 
  253. released
  254. executed 
  255. releasing 
  256. Xp=0 
  257. -- avoids unexpected 
  258.  appearance (i.e. doubleClicking on Toolbook icon)
  259. (Xq-Xp) < 150 ) 
  260. (Yq-Yp) < 150)
  261. centre
  262. (Xq-Xp) >= 
  263. (Yq-Yp)
  264. Xq > Xp
  265. Yq > Yp
  266. LeavePage
  267. "Reader"
  268. error messages turning 
  269. without 
  270.         -- 
  271. Right+Left mousebutton 
  272. buttonStillDown
  273. buttonUp
  274. buttonDown
  275. LeavePage
  276. ClearPie
  277. enterpage
  278. rightButtonUp
  279. enterpage
  280. Action
  281. buttonDown
  282. pieMenu
  283. !WClearPie
  284. buttonStillDown
  285. pieMenu
  286. pieMenu
  287. !WClearPie
  288. GoNext
  289. PieMenu
  290. 0,50,100
  291. GoPrev
  292. PieMenu
  293. 0,0,0
  294. GoIndex
  295. PieMenu
  296. 0,0,0
  297. GoBack
  298. PieMenu
  299. 0,0,0
  300. GoNext
  301. PieMenu
  302. 0,0,0
  303. GoPrev
  304. PieMenu
  305. 0,50,100
  306. GoIndex
  307. PieMenu
  308. 0,0,0
  309. GoBack
  310. PieMenu
  311. 0,0,0
  312. GoNext
  313. PieMenu
  314. 0,0,0
  315. GoPrev
  316. PieMenu
  317. 0,0,0
  318. GoIndex
  319. PieMenu
  320. 0,0,0
  321. GoBack
  322. PieMenu
  323. 0,50,100
  324. GoNext
  325. PieMenu
  326. 0,0,0
  327. GoPrev
  328. PieMenu
  329. 0,0,0
  330. GoIndex
  331. PieMenu
  332. 0,50,100
  333. GoBack
  334. PieMenu
  335. 0,0,0
  336. buttonUp
  337. PieMenu
  338. Action
  339. PREVIOUS
  340. Action
  341. Action
  342. INDEX
  343. Action
  344. Index
  345. PieMenu
  346. LeavePage
  347. Reader
  348. Action
  349. pieMenu
  350. ClearPie
  351. GoNext
  352. PieMenu
  353. 0,0,0
  354. GoPrev
  355. PieMenu
  356. 0,0,0
  357. GoIndex
  358. PieMenu
  359. 0,0,0
  360. GoBack
  361. PieMenu
  362. 0,0,0
  363. rightButtonUp
  364. pieMenu
  365. Introduction
  366. necessary only 
  367. avoid unexpected
  368. -- appearing 
  369. Menu due 
  370. bottonDown messages sent 
  371. cloading
  372. ButtonDown
  373. 4justOpen
  374. JustOpen 
  375. False
  376. justopen 
  377. ButtonDown
  378. enterpage
  379. ButtonDown
  380. JustOpen
  381. justOpen
  382. enterpage
  383. justopen
  384. justOpen
  385. JustOpen
  386.                PIE MENU v. 2.0  by  Paolo Tosolini - October '92
  387. This is the new release of the Pie pop up Menu implemented in Toolbook using Openscript.
  388.  Now you can navigate though the pages of this book without any menu appears on the screen. Just click the mouseButton and (while keeping pressed it) move the pointer to : 
  389.             RIGHT     for NEXT PAGE
  390.             LEFT     for PREVIOUS PAGE
  391.             UP     for page called "Index"
  392.             DOWN     for BACK
  393. However, if you keep pressed the mouseButton for more than half second, the Pie Menu will be visible and you can see how it works while you move the pointer around it.
  394. The action of changing page starts when you release the mouseButton.
  395. You can make the PieMenu disapper just releasing the mouseButton in the centre of the Pie.
  396. PieMenu
  397. GoPrev
  398. h    stokecolor
  399. 0,0,0
  400. Previsss
  401. GoIndex
  402. stokecolor
  403. 0,0,0
  404. Index
  405. GoNext
  406. stokecolor
  407. 0,0,0
  408. GoBack
  409. stokecolor
  410. 0,0,0
  411. txClassName
  412. Author
  413. PieMenu
  414. GoPrev
  415. stokecolor
  416. 0,0,0
  417. Previsss
  418. GoIndex
  419. stokecolor
  420. 0,0,0
  421. Index
  422. GoNext
  423. stokecolor
  424. 0,0,0
  425. GoBack
  426. stokecolor
  427. 0,0,0
  428. txClassName
  429. I look forward to hearing from you !
  430. Your suggestions, comments and criticisms are very helpful for me.
  431. They are new energy for everybody's brainstorming to find new interface solutions.
  432. Please, write to:
  433. Paolo Tosolini - via Bembo, 5 - 34105 Muggia (TS) - Italy
  434. tel. +39-40-275030  fax. +39-40-311850   email: tosolini@uts340.univ.trieste.it
  435. REFERENCES
  436. [  Callahan J., Hopkins D., Weiser M.,  Shneiderman B. (1988)
  437. "An empirical comparison of Pie versus Linear Menus", Proceedings of CHI' 88 ]
  438. [ Kurtenbach P.G., Sellen A. J. e Buxton W. A. S. (1992) ," An Empirical Evaluation of some Articulatory and Cognitive Aspects of Marking Menus", to print on HCI January 1993 ]
  439. and copy it to every page of your application.
  440. I suggest anyway to do these operations once your book is completed.
  441. LeavePage
  442. Action
  443. pieMenu
  444. ClearPie
  445. GoNext
  446. PieMenu
  447. 0,0,0
  448. GoPrev
  449. PieMenu
  450. 0,0,0
  451. GoIndex
  452. PieMenu
  453. 0,0,0
  454. GoBack
  455. PieMenu
  456. Index
  457. This page is called INDEX and could be the summary page of your book
  458. The PieMenu includes the option to go to a page called "Index".
  459. To change this option, you should replace the text "Index" in the 
  460. PieMenu field and the <go to page "Index"> script in the buttonUp
  461. handler of the background.
  462. The textFields of the PieMenu are called "GoNext, GoPrev, GoBack,
  463. GoIndex". The entire group is called "PieMenu".
  464. To avoid undesired flickering of the commands, set the DrawDirect properties of the PieMenu fields to False. For better visual results, in this book there are no DrawnDirect objects.
  465. New improvements:
  466. The PieMenu v.2.0 may result useful to navigate in a book in a linear way.
  467. Four choices are not enough to substitute completely a traditional pull down menu.
  468. In my next release I'll try to implement a kind of hierarchy of the commands .
  469.                                          
  470. eMenu
  471. GoPrev
  472. stokecolor
  473. 0,0,0
  474. Previsss
  475. GoIndex
  476. stokecolor
  477. 0,0,0
  478. Index
  479. GoNext
  480. stokecolor
  481. 0,0,0
  482. GoBack
  483.     stokecolor
  484. 0,0,0
  485. txClassName
  486. PieMenu
  487. GoPrev
  488. stokecolor
  489. 0,0,0
  490. Previsss
  491. GoIndex
  492. stokecolor
  493. 0,0,0
  494. Index
  495. GoNext
  496. stokecolor
  497. 0,0,0
  498. GoBack
  499. stokecolor
  500. 0,0,0
  501. txClassName
  502.